extends CharacterBody2D


const SPEED = 300.0
const JUMP_VELOCITY = -400.0



func _physics_process(_delta: float) -> void:
	if multiplayer.is_server():
		var p := get_tree().get_first_node_in_group("player_test")
		if p:
			var dir := global_position.direction_to(p.global_position)
			velocity = dir * 100
			move_and_slide()

